class UpdateAuthorAnalytic < ActiveRecord::Migration
  def self.up
    GroupingAnalytic.find_by_name("Top Authors").update_attributes(:search_term => "author",
      :sql => "select reports.id as id, author as name, count(*) as num from reports 
      group by author order by num desc limit 1")
  end

  def self.down
  end
end
